<!-- 开支编辑弹窗 -->
<template>
  <ele-modal
    form
    width="90%"
    :model-value="modelValue"
    title="查看凭证"
    @update:modelValue="updateModelValue"
  >
    <el-image v-for="url in props.data.imageList" :key="url" :src="url" lazy />
  </ele-modal>
</template>

<script setup>
  const props = defineProps({
    /** 弹窗是否打开 */
    modelValue: Boolean,
    /** 修改回显的数据 */
    data: Object
  });
  const emit = defineEmits(['done', 'update:modelValue']);
  /** 更新modelValue */
  const updateModelValue = (value) => {
    emit('update:modelValue', value);
  };
</script>
